<div class="am-u-sm-12">
    <form class="am-form" id="list-form" action="${base}/broadbandOpenOrderAdmin/list" method="post">
        <input type="hidden" id="keywords" name="keywords" value='${keywords!""}'/>
        <input type="hidden" id="city_id_input" name="city_id_input" value='${city_id!""}'/>
        <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
            <tbody>
            <tr>
                <th class="am-text-middle">联系人姓名</th>
                <td>
                    <div class="am-u-sm-10">
                        <input type="text" id="cust_name" value="${cust_name!}" class="am-form-field am-input-sm"/>
                    </div>
                </td>
                <th class="am-text-middle">联系电话</th>
                <td>
                    <div class="am-u-sm-10">
                        <input type="text" id="con_phone"  value="${con_phone!}" class="am-form-field am-input-sm"/>
                    </div>
                </td>
            </tr>
            <tr>
                <th class="am-text-middle">订单号</th>
                <td>
                    <div class="am-u-sm-10">
                        <input type="text" id="order_id" value="${order_id!}" class="am-form-field am-input-sm"/>
                    </div>
                </td>
                <th class="am-text-middle">所属机构</th>
                <td>
                    <div class="am-u-sm-10">
                        <select data-am-selected="{btnSize:'sm',maxHeight: 400}" name="org_id" id="org_id">
                            <%for(orgNode in orgList){%>
                            <option value="${orgNode.value}" <%if(org_id==orgNode.value){%>
                            selected
                            <%}%>>${orgNode.key}</option>
                            <%}%></select>
                    </div>
                </td>
            </tr>



            <tr>
                <th>时间</th>
                <td colspan="3">
                    <div class="am-u-sm-10">
                        <div class="am-form am-form-inline">
                            <div class="am-form-group am-form-icon">
                                <i class="am-icon-calendar"></i>
                                <input type="text" class="am-form-field am-input-sm" id="start_time"
                                       value="${start_time!}" placeholder="开始日期" data-am-datepicker readonly>
                            </div>
                            <div class="am-form-group">至</div>
                            <div class="am-form-group am-form-icon">
                                <i class="am-icon-calendar"></i>
                                <input type="text" class="am-form-field am-input-sm" id="end_time" value="${end_time!}"
                                       placeholder="结束日期" data-am-datepicker readonly>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>



            <tr>
                <th class="am-text-middle">客户经理</th>
                <td>
                    <div class="am-u-sm-10">
                        <label class="am-radio-inline">
                            <input type="radio" id="beMgr" name="isMgr" value="1" data-am-ucheck <%if(isMgr! == "1"){%>
                            checked
                            <%}%> > 是
                        </label>
                        <label class="am-radio-inline">
                            <input type="radio" id="notMgr" name="isMgr" value="0" data-am-ucheck <%if(isMgr! == "0"){%>
                            checked
                            <%}%>> 否
                        </label>
                        <label class="am-radio-inline">
                            <input type="radio" id="whatever" name="isMgr" value="2" data-am-ucheck <%if(!has(isMgr)||(isMgr! == "2")){%>
                            checked
                            <%}%>> 全部
                        </label>
                    </div>
                </td>
                <th class="am-text-middle">店员身份</th>
                <td>
                    <div class="am-u-sm-10">
                        <div class="am-u-sm-10">
                            <select data-am-selected="{btnSize:'sm',maxHeight: 400}" name="memberType" id="memberType">
                                <option value="0" <%if(memberType! == "0"){%>
                                selected
                                <%}%>>全部</option>
                                <option value="1" <%if(memberType! == "1"){%>
                                selected
                                <%}%>>店长</option>
                                <option value="2" <%if(memberType! == "2"){%>
                                selected
                                <%}%>>店员</option>
                                <option value="3" <%if(memberType! == "3"){%>
                                selected
                                <%}%>>泛店员</option>
                            </select>
                        </div>
                    </div>
                </td>
            </tr>





            <tr>
                <td colspan="8">
                    <div align='right'>
                        <button type="button" class="am-btn am-btn-default am-btn-sm am-text-secondary" id="submit-btn"
                                onClick="submit_btn('search');">搜索
                        </button>
                        <button type="button" class="am-btn am-btn-default am-btn-sm am-text-secondary" id="export-btn"
                                onClick="submit_btn('export');">导出
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        if($("#keywords").val().length<1){
            var keywordsObj = {};
            keywordsObj.city_id = $("#city_id_input").val();
            var keywords = JSON.stringify(keywordsObj);
            $("#keywords").val(keywords);
        }
        if($("#city_id").prop("disabled")){
            $("#city_id").selected('disable')
        }
    });
</script>